﻿using System;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class WsBoolRecord : BiffRecord
    {
        private short flags = 0x4c1;

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            this.flags = context.ReadInt16();
        }

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.WsBool; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            context.Write(flags);
        }
    }
}